﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;


namespace YGame.Base
{
	public class ReceiveMessageArgs : EventArgs
	{
		public BaseMessage Message { get; set; }
	}

	public delegate void ReceiveMessageHandle(object sender, ReceiveMessageArgs e);

	/// <summary>
	/// 提供游戏基础功能
	/// </summary>
	public interface IGameServerProvider
	{
		//IActor GetActor(int actorID);
		//IActor ActorLogin(int actorID);
		//bool ActorLogout(int actorID);
		//event EventHandler Login;
		//event EventHandler Logout;
		event ReceiveMessageHandle ReceiveMessage;

		bool Start();
		bool Stop();



		event EventHandler Login;
		event EventHandler Logout;
	}






}
